//package com.inspur.edp.cef.variable.dtgenerator.core.rtgenerator.entity.dtm;
//
//
//import com.inspur.edp.caf.generator.baseInfo.ParameterInfo;
//import com.inspur.edp.caf.generator.baseInfo.TypeInfo;
//import com.inspur.edp.cef.api.dataType.valueObj.ICefValueObjContext;
//import com.inspur.edp.cef.rtgenerator.entitygen.determination.method.GetDeterminationContextGenerator;
//import com.inspur.edp.cef.variable.core.determination.VarDeterminationContext;
//import org.eclipse.jdt.core.dom.Block;
//import org.eclipse.jdt.core.dom.CastExpression;
//import org.eclipse.jdt.core.dom.ClassInstanceCreation;
//import org.eclipse.jdt.core.dom.ReturnStatement;
//
//import java.util.ArrayList;
//
//public class VarGetDeterminationContextGenerator extends GetDeterminationContextGenerator
//{
//	@Override
//	protected ArrayList<ParameterInfo> getParameterCollection() {
//		ArrayList<ParameterInfo> list=new ArrayList<ParameterInfo>();
//		ParameterInfo parameterInfo=new ParameterInfo();
//		parameterInfo.setParamType(new TypeInfo(ICefValueObjContext.class));
//		parameterInfo.setParamName("data");
//		list.add(parameterInfo);
//
//		return list;
//	}
//
//	@Override
//	protected Class getContextParType() {
//		return ICefValueObjContext.class;
//	}
//
//	@Override
//	protected Block buildMethodBody() {
//		Block block=ast.newBlock();
//		ReturnStatement returnStatement=ast.newReturnStatement();
//		ClassInstanceCreation classInstanceCreation=ast.newClassInstanceCreation();
//		classInstanceCreation.setType(ast.newSimpleType(ast.newName(VarDeterminationContext.class.getTypeName())));
//
//		CastExpression castExpression=ast.newCastExpression();
//		castExpression.setType(ast.newSimpleType(ast.newName(ICefValueObjContext.class.getTypeName())));
//		castExpression.setExpression(ast.newSimpleName("data"));
//
//		classInstanceCreation.arguments().add(castExpression);
//		returnStatement.setExpression(classInstanceCreation);
//		block.statements().add(returnStatement);
//
//		return block;
//	}
//}